package com.heima.behavior;

import com.heima.behavior.util.SpringContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author mcm
 */
@SpringBootApplication
public class BehaviorApp {
    public static void main(String[] args) {
        ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(BehaviorApp.class, args);
        try {
            Thread.sleep(20000);
            configurableApplicationContext.close();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
